        
package com.fire.eyes.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.fire.eyes.dao.TaskScheduleJobMapper;
import com.fire.eyes.model.TaskScheduleJobModel;
import com.fire.eyes.service.ITaskScheduleJobService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * 定时任务调度Service
 *
 * @author Matthew
 * @Date 2019-01-10 13:46
 */
@Service
public class TaskScheduleJobServiceImpl extends ServiceImpl<TaskScheduleJobMapper, TaskScheduleJobModel> implements ITaskScheduleJobService{

    private static final Logger LOGGER = LoggerFactory.getLogger(TaskScheduleJobServiceImpl.class);

    @Autowired
    private TaskScheduleJobMapper taskScheduleJobMapper;


    @Override
    public TaskScheduleJobModel selectOne(TaskScheduleJobModel entity){
        return taskScheduleJobMapper.selectOne(entity);
    }

    @Override
    public List<TaskScheduleJobModel>selectList(TaskScheduleJobModel model){
         return taskScheduleJobMapper.selectList(model, new EntityWrapper<TaskScheduleJobModel>());
    }

    @Override
    public List<TaskScheduleJobModel>selectList(TaskScheduleJobModel model,Wrapper<TaskScheduleJobModel>wrapper){
        return taskScheduleJobMapper.selectList(model,wrapper);
    }

    @Override
    public List<TaskScheduleJobModel>selectPage(Pagination pagination,TaskScheduleJobModel model,Wrapper<TaskScheduleJobModel>wrapper){
        return taskScheduleJobMapper.selectPage(pagination,model,wrapper);
    }

}
